package logic

import (
	"context"
	"guar/guarrpc/guarrpcclient"

	"guar/api/internal/svc"
	"guar/api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
	"github.com/zeromicro/go-zero/zrpc"
	"go.opentelemetry.io/otel/semconv/v1.32.0/rpcconv"
)

type SendSmsLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewSendSmsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendSmsLogic {
	return &SendSmsLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *SendSmsLogic) SendSms(req *types.SendsmsRequest) (resp *types.Response, err error) {
	// todo: add your logic here and delete this line

	sms, err := l.svcCtx.GuarRpc.SendSms()

	return
}
